/*
 * @Description: 销售情况录入
 */
import zhreq from "@/api/axios";
export default {
  /**
   * @description: 获取种养品种 *代表必填
   * @param {String/Number} page *
   * @param {String/Number} size *
   */
  getlist(params) {
    return zhreq.post("/salesRecord/queryPageList", {
      ...params,
      entity: {
        "farmingTypeNo": sessionStorage.getItem("farmingTypeNo")
      }
    });
  },
  /**
   * @description: 添加
   * @param {Object}  *
   */
  addlist(params) {
    return zhreq.post('/salesRecord/add', params);
  },
  /**
   * @description: 批量删除
   * @param {Object}  *
   */
  dellist(params) {
    return zhreq.post('/salesRecord/delList', {
      'salesRecordIdList': params
    });
  },
  /**
   * @description: 修改
   * @param {Object}  *
   */
  editlist(params) {
    return zhreq.post('/salesRecord/edit', params);
  },
  /**
   * @description: 条件查询
   * @param {Object}  *
   */
  querybycondition(params) {
    return zhreq.post('/salesRecord/queryByCondition', {
      ...params
    });
  },
  /**
   * @description: 查询产量规格
   * @param {Object}  *
   */
  getspecification(params) {
    return zhreq.post('/specification/queryByCondition', {
      plantVarietyId: params
    });
  }
};
